package com.yidu.Util.util;

public class TableNameUtil {
    public static final String B="broker";
    public static final String TS="tradingSeats";
    public static final String P="plate";
    public static final String C="cash";
    public static final String T="trade";
    public static final String M="market";
    public static final String SA="securityAccrued";
    public static final String CA="cashAccrued";
    public static final String MA="moneyAllocate";
    public static final String TA="TABusiness";
    public static final String SIS="securityInventors";
    public static final String CIS="cashInventorys";
    public static final String SI="securityInventory";
    public static final String CI="cashInventory";
    public static final String TAI="TAInventory";

    public static String getTableName(String tableName){
        String name = "";
        switch (tableName){
            case B:
                name ="B";
                break;
            case TS:
                name ="TS";
                break;
            case P:
                name ="P";
                break;
            case C:
                name ="C";
                break;
            case T:
                name ="T";
                break;
            case M:
                name ="M";
                break;
            case SA:
                name ="SA";
                break;
            case CA:
                name ="CA";
                break;
            case MA:
                name ="MA";
                break;
            case TA:
                name ="TA";
                break;
            case SIS:
                name ="SIS";
                break;
            case CIS:
                name ="CIS";
                break;
            case SI:
                name ="SI";
                break;
            case CI:
                name ="CI";
                break;
            case TAI:
                name ="TAI";
                break;
        }
        return name;
    }

    public static void main(String[] args) {
        String m = TableNameUtil.getTableName("securityInventors");
        System.out.println(m);
    }
}
